FROM openjdk:17
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /workspace
MAINTAINER bitejiuyeke
COPY ./*.jar /workspace/app.jar
ENTRYPOINT ["java","-Xmx256m","-jar","app.jar"]